<!DOCTYPE html>
<?php
	require('../../_app/Config.inc.php');
?>
<html lang="pt-br">
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php

        $inserir = new Cadastrar;
        $dataCadastroProd = filter_input_array(INPUT_POST,FILTER_DEFAULT);
        if (!empty($dataCadastroProd['Cadastrar'])):
            $inserir->CadastrarCliente($dataCadastroProd);
        endif;

        ?>

        <div class="formCadastro">
        	<form name="CadastrarForm" action="" method="POST">
                        <fieldset style="width: 200px">
                            <legend align="center" >Cadastrar Cliente</legend>
                            <label>Nome:</label> <br />
                            <input type="text" name="nome"> <br />

                            <label>CPF:</label> <br />
                            <input type="text" name="cpf"> <br />

                            <label>Endereço:</label><br />
                            <input type="text" name="endereco"><br />

                            <label>Telefone:</label><br />
                            <input type="text" name="telefone1"><br />

                            <label>Celular:</label><br />
                            <input type="text" name="telefone2"><br />


                            <input type="submit" name="Cadastrar" value="ok" /><br />

                        </fieldset>
        	</form>
        </div>
    </body>
</html>
